<!--
 * @Author: Low-key 1334637865@qq.com
 * @Date: 2023-08-05 16:52:07
 * @LastEditors: Low-key 1334637865@qq.com
 * @LastEditTime: 2023-08-07 09:06:24
 * @FilePath: \pig\template_h5\public\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta id="viewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
    <!-- 在HTML头部添加meta标签禁用缓存 -->
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <script src="https://api.onestep6.com/resource/js/zdjs.bridge.min.js"></script>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <script>
      var initViewport = function(height){
        var metaEl = document.querySelector("#viewportMeta");
        var content = "height=" + height + ",width=device-width,initial-scale=1.0,user-scalable=no, viewport-fit=cover";
        metaEl.setAttribute('name', 'viewport');
        metaEl.setAttribute('content', content);
      }
      var realHeight = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight
      initViewport(realHeight);

    </script>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
